package com.ccq.controller;

import com.alibaba.fastjson.JSON;
import com.ccq.model.Allfloor;
import com.ccq.service.IndexService;
import com.ccq.service.NewhourseService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping(value = { "front" })
public class NewhourseController {

    @Autowired
    IndexService indexService;

    @Autowired
    NewhourseService newhourseService;

    @ApiOperation(value="推荐楼盘列表",notes = "推荐楼盘列表")
    @RequestMapping(value="recommend1",method = RequestMethod.POST)
    @ResponseBody
    public String Recommend1(){
        String ls=newhourseService.recomlst();
        return ls;
    }
}
